<?php

// 入口文件所在目录
define('SWROOT_PATH', dirname(__FILE__));
define('FRAMEWORK_PATH', dirname(dirname(dirname(__FILE__))));

require SWROOT_PATH . '/lib/SwooleServer.php';
require SWROOT_PATH . '/callback/Callback.php';

$debug = false;
if ($argv[1] == 'debug') {
    $debug = true;
}

$server = SwooleServer::getInstance(SWROOT_PATH, FRAMEWORK_PATH, $debug);

$server->run();
